module.exports = {

    // 定义的规则 KEY需要的ID_存储的内容_存储的内容字段名

    USER_DATA: 'user:${userId}', // user(json)
    USER_PROPERTY: 'user:${userId}:${property}', // value
    USER_TICKET: 'user:${userId}:ticket', // ticket
    USER_TOKEN: 'user:${userId}:token', // token

    TICKET_USER_ID: 'ticket:${ticket}', // userId

    TOKEN_USER: 'token:${token}', // user(json)
    TOKEN_USER_ID: 'token:${token}', // userId

    ARTICLE_ID: 'article:id', // articleId
    ARTICLE_PREVIEW: 'article:${articleId}:preview', // article
    ARTICLE_SAVE: 'article:${articleId}:save', // article
    ARTICLE_PAYMENT_ID: 'article:${articleId}:payment:id', // paymentID
    ARTICLE_UNLOCK: 'article:${articleId}:unlock', // members set

    // 七牛图片信息
    IMAGE_QINIU_AVE: 'image:${imageUrl}:ave', // imageAve
    IMAGE_QINIU_INFO: 'image:${imageUrl}:info', // imageInfo

    // 块
    BLOCK_ARTICLE: 'block:${blockId}', // block
    BLOCK_ARTICLE_FREE: 'block:${blockId}:free', // free block

    EXE_USER_TOKEN: 'user:${exeId}:token', // exe token
}